<?php
/**
 * The template for displaying all pages.
 *
 * This is the template that displays all pages by default.
 * Please note that this is the WordPress construct of pages
 * and that other 'pages' on your WordPress site will use a
 * different template.
 *
 * @package WordPress
 * @subpackage Twenty_Twelve
 * @since Twenty Twelve 1.0
 */

global $post;
get_header(); 

// $arrGoodsInfo = new stdclass();
$arrGoodsInfo = new stdClass();
if(isset($_POST['add_to_cart'])){ 
	$arrGoodsInfo->goods_id = $_POST["goods_id"];
	$arrGoodsInfo->qty = 1;
	
// var_dump($arrGoodsInfo);
// var_dump($_POST["post_id"]);
// return;
    $result = add_to_order_cart($arrGoodsInfo);
    wp_redirect(get_permalink(get_page_id("order-cart")));
}

//var_dump($_SESSION["order_cart"]);

?>
    <div class="row-fluid">
        <div id="primary" class="site-content span12">   
            <?php woo_main_before();?>
    		<div id="content" role="main">
                
                <header id="product-title" class="cart-title">
                    <h2 class="fl pom2">Thông tin tài khoản</h2>					
                    <h3 class="pom3">Xin chào <?php echo $current_user->data->display_name ?></h3>
					<p class="oipi3">Từ mục "TÀI KHOẢN CỦA TÔI" ....</p>
					<a href="<?php echo get_permalink(get_page_id('account-info-edit')) ?>">Thay đổi thông tin</a>
				</header>
				aaaaa
				
                <div class="row-fluid"> 			
               		<div class="infor-account ">
					   <div class="row-fluid">
							<div class="span6">
                            	<div class="opins">+ Ngày sinh : <span><?php echo get_the_author_meta('birthday',$current_user->data->ID); ?></span></div>
                                <div class="opins">+ Giới tính : <span><?php echo get_the_author_meta('sex_type',$current_user->data->ID);?></span></div>
                            </div>
					   
					   </div>
					</div>
				</div>
				
    		</div><!-- #content -->            
            <?php woo_main_after();?>
    	</div><!-- #primary -->
        
    </div>
	



<?php get_footer(); ?>

